<?php

include_once( '../api/session.php' );

require_once( '../api/Client.class.php' );

include_once( '../library/config.php' );
include_once( APPLICATION.'User.class.php' );
include_once( APPLICATION.'Payment.class.php' );
include_once( APPLICATION.'Paymentrequest.class.php' );

$pname = 'JaPagoJo';

include_once( 'templates/header.tmp.php' );

if( isset( $_POST['step'] ) && $_POST['step'] == 'confirm' ) {
  include_once( 'templates/confirm.tmp.php' );
}
else {
	$users = explode(',', $_POST['selected'] );
  include_once( 'templates/split.tmp.php' );
}

include_once( 'templates/footer.tmp.php' );
?>